const importFn = require.context('./', false, /\.(vue|tsx)$/)

export default {
	install(app) {
		importFn.keys().forEach(key => {
			const component = importFn(key).default
			app.component(component.name, component)
		})
	}
}